package com.bird.thread.base.startthread;

/**
 * @author: bird
 * @Data: 2021/6/25 17:57
 * @description: 不能两次启动start
 */
public class CantStartTwo {

    public static void main(String[] args) {

        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                String name = Thread.currentThread().getName();
                System.out.println("runnable start thread son-thread-name: " + name);
            }
        });
        thread.start();
         thread.start();

    }
}
